package com.example.pucha_xian.common;

public class SpinnerConfig {
    public static int bzlb(String item) {
        switch (item) {
            case "三角点":
                return 1;
            case "水准点":
                return 2;
            case "GNSS点":
                return 3;
            case "基准站":
                return 4;
            default:
                return 0;
        }
    }

    public static int status(String item) {
        switch (item) {
            case "完好可用":
                return 1;
            case "完好不可用":
                return 2;
            case "部分完好可用":
                return 3;
            case "部分完好不可用":
                return 4;
            case "损毁":
                return 5;
            default:
                return 0;
        }
    }
}
